import {defineStore} from 'pinia';
import {ref} from 'vue';

export const useGlobalStore = defineStore('global', () => {
    const goods = ref([
        {name: '插线板', count: 0},
        {name: '电暖器', count: 10},
        {name: '电灯', count: 0},
        {name: '电风扇', count: 20},
        {name: '文件柜', count: 0},
        {name: '白板', count: 30},
        {name: '车证', count: 0},
        {name: '工卡补办', count: 20},
        {name: '工位钥匙', count: 0},
        {name: '闸机钥匙', count: 0}
    ]);
    const badge = ref(20);

    return {
        goods,
        badge
    };
});
